package com.sphd.emanu.utils.retrofitError;

/**
 * @Author Hu
 * @Time 2017/5/19 --16:05.
 * @Email 87683202@qq.com
 */
public class ApiException extends Exception  {
    public int code;
    public String message;

    public ApiException(Throwable throwable, int code) {
        super(throwable);
        this.code = code;
    }

    @Override
    public String toString() {
        return
                "错误码：" + code +"\n"+
                "错误信息：" + message ;
    }
}
